#include<stdio.h>

int main()
{
    char a[100],c;
	int a0=0,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,a7=0,a8=0,a9=0,i;
	printf("please input a string:\n");
	while((c=getchar())!='\n')
	{
		if(c=='0')
			a0++;
		if(c=='1')
			a1++;
		if(c=='2')
			a2++;
		if(c=='3')
			a3++;
		if(c=='4')
			a4++;
		if(c=='5')
			a5++;
		if(c=='6')
			a6++;
		if(c=='7')
			a7++;
		if(c=='8')
			a8++;
		if(c=='9')
			a9++;
	}
	printf("0:%d个,1:%d个,2:%d个,3:%d个,4:%d个,5:%d个,6:%d个,7:%d个,8:%d个,9:%d个\n",a0,a1,a2,a3,a4,a5,a6,a7,a8,a9);
	return 0;
}